<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style>

.tdfile {
	border-top: 1px;
	border-top-color: gray;
	border-top-style: solid
}
</style>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
</head>
<body>
	<table width='100%' border='0' cellpadding='0' cellspacing='3'>
		<tr>
			<td height='25' align='left'>
				[파일 첨부] 글 번호 : <b>${exercise.exerciseNo}</b>
			</td>
		</tr>
		<tr>
			<td>
				<table width='100%' border='0' cellpadding='0' cellspacing='0' style="border-collapse:collapse;">
					<tr>
						<td class="tdfile" style="width: 300px;">
							&nbsp;&nbsp;&nbsp;파일명
						</td >
						<td class="tdfile" style="width: 100px;">
							파일크기
						</td >
						<td class="tdfile" style="width: 200px;">
							업로드 일자
						</td >					</tr>
		<c:forEach var="exerciseFile" items="${exerciseFileList }">
				<tr>
					<td class="tdfile" style="width: 300px;">
						*&nbsp;${exerciseFile.addfileName }
					</td >
					<td class="tdfile" style="width: 100px;">
						${exerciseFile.addfileSize }
					</td >
					<td class="tdfile" style="width: 200px;">
						${exerciseFile.inputDate }
					</td >
				</tr>
		</c:forEach>
				</table>		
			<div style="border-top: 1px;border-top-color: gray;border-top-style: solid">
			</div>		
			</td>
		</tr>

		<tr>
			<td height='25' align='left'>
				<form name='exerciseFileForm' method='post' action='admin.spring' enctype='multipart/form-data' >
					<input type='hidden' name='action' value='adminExercisePicture'> 
					<input type='hidden' name='exerciseNo' value='${exercise.exerciseNo }'>
						*파일 첨부(최대 2MB 까지 업로드 가능)<br> 
					<input type='file' name='multipartFile' style='width: 90%' dispName='파일명' notnull>
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<input type='submit' value='저장' >&nbsp;&nbsp;
				</form>
			</td>
		</tr>
	</table>
</body>
</html>